package com.example.farmeri.data;

import android.content.SharedPreferences;

import com.example.farmeri.pojo.User;

public class DataParam {

    // 农田数据采集人员
    public static final Integer IDENTITY_COLLECTOR = 1;
    // 农田主
    public static final Integer IDENTITY_FARMER = 2;
    // 后台管理员
    public static final Integer IDENTITY_ADMIN = 3;

    public static Integer identity;

    private static User userInfo;

    public static User getUserInfo() {
        if (null == userInfo){
//            SharedPreferences sp =
        }
        return userInfo;
    }

    public static void setUserInfo(User userInfo) {
        DataParam.userInfo = userInfo;
    }
}
